
<img
	src="{$smarty.const.WEBROOT}/lib/design/img/logo_{$business->getCode()}.png" width="140" height="140"
	alt="{$business->getName()} logo" class="left photo"/>
<h1 style="padding-top:30px">{$business->getName()}</h1>
<h1 style="color:gray;">{$nps|string_format:"%.1f"}%</h1>
<p style="clear:left;">{$business->getDescription()}</p>
<div id="map-canvas" style="height:200px;width:450px;float:left"></div>
<div style="float: left;">
<table class="feedbackTbl" cellspacing="0" style="width:300px">
<tr><td>{$lang['address']}</td><td>{$business->getAddress()}</td></tr>
<tr><td>{$lang['phone']}</td><td>{$business->getPhone()}</td></tr>
<tr><td colspan='2'><a href='{$business->getWebsite()}' target='_blank'>{$lang['website']}</a></td></tr>
</table><br>
<p class="readmore">
	<a
		href="{$smarty.const.WEBROOT}/feedback/{$business->getCode()}/">{$lang['feedback']}</a>
	»
</p>
{if isset($company) && $company}
	{foreach from=$company item=c}
	{if $c->getId() eq $business->getId()}
    <p class="readmore">
    	<a
    		href="{$smarty.const.WEBROOT}/editCompany/{$c->getId()}">{$lang['editDetails']}</a>
    	»
    </p>
    {/if}
	{/foreach}
{/if}
</div>
<div class="clearfix"></div>
<h3>{$lang['clientFeedback']}</h3>
{if $business->getPublicComments() eq 1}
	{if $feedbacks}
	    <div class="chat">
	    	{foreach from=$feedbacks item=feedback}
	    	<div class="bubble me" id="feedback_{$feedback->getId()}">{$feedback->getComment()}<br> 
	    	    <span class="fade">{$feedback->getTime()|date_format:"%d.%m.%Y"}</span>
	    	</div>
	    	{/foreach}
	    </div>
	{/if}
{else}
	<p>{$lang['commentsPrivate']}</p>
{/if}